<?php
 function to_ken($t){
	list($key,$value)  =  explode('_',$t);
	if ($_SESSION[C('TOKEN_NAME')][$key] != $value)
	{
	   return false;
	}
	else
	{
	  unset($_SESSION[C('TOKEN_NAME')][$key]);
	  return true;
	}
}
function get_ip(){
	return get_client_ip();
}
function login_time(){
	return date('Y-m-d H:i:s');
}